
public class Bottle<T extends Drink<T>> {
	private T drink;
	
	Bottle(){
	}
	public boolean isEmpty(){
		return ((drink == null) ? true : false);
	}
	public void fill (T drink) throws BottelOverflowException{
		if (isEmpty())
			this.drink = drink;
		else
			throw new BottelOverflowException();
	}
	public T empty(){
		T t = drink;
		drink = null;
		return t;
	}
}
